//3：输出今年的国庆节（10.1）是周几
package Work0529;

import java.util.Calendar;

public class NationalDay {

	public static void main(String[] args) {
		Calendar day = Calendar.getInstance();
		day.set(2020, Calendar.OCTOBER, 1);
		System.out.println(day.getTime());
		int d = day.get(Calendar.DAY_OF_WEEK);
		String[] week = { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" };
		System.out.println("国庆节当天是" + week[d - 1]);

	}

}
